package com.dong.service;

import com.dong.entity.Account;
import com.dong.entity.Orders;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface IAccountService {

    List<Account> findAll(int page,int size);

    void saveAccount(Account account);
    void delete(int id);

    void update(Account account);

    Account checkName(String name);

    Account findById(int id);
    List<Account> findByName(String name);

    Account findAllByaid(int id);

//    List<Account> findAllOrders();
}
